import { defineMock } from "../base";

export default defineMock([
  // GET uri: /api/setting/{cpu}/system, /api/setting/{cpu}/system?limit=20&offset=10
  {
    url: "setting/:cpu/system",
    method: ["GET"],
    body({ query, params }) {
      console.log("setting/:cpu/system", query, params);
      return [
        {
          ID: 1,
          Name: "PT一次额定值",
          Value: 220.0,
          "Current Value": "220.000 kV",
          "Lower Limit": 1.0,
          "Upper Limit": 1200.0,
          Step: 1.0,
        },
        {
          ID: 2,
          Name: "支路1CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 3,
          Name: "支路1CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 4,
          Name: "支路2CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 5,
          Name: "支路2CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 6,
          Name: "支路3CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 7,
          Name: "支路3CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 8,
          Name: "支路4CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 9,
          Name: "支路4CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 10,
          Name: "支路5CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 11,
          Name: "支路5CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 12,
          Name: "支路6CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 13,
          Name: "支路6CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 14,
          Name: "支路7CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 15,
          Name: "支路7CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 16,
          Name: "支路8CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 17,
          Name: "支路8CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 18,
          Name: "支路9CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 19,
          Name: "支路9CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 20,
          Name: "支路10CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 21,
          Name: "支路10CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 22,
          Name: "支路11CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 23,
          Name: "支路11CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 24,
          Name: "支路12CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 25,
          Name: "支路12CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 26,
          Name: "支路13CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 27,
          Name: "支路13CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 28,
          Name: "支路14CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 29,
          Name: "支路14CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 30,
          Name: "支路15CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 31,
          Name: "支路15CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 32,
          Name: "支路16CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 33,
          Name: "支路16CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 34,
          Name: "支路17CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 35,
          Name: "支路17CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 36,
          Name: "支路18CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 37,
          Name: "支路18CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 38,
          Name: "支路19CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 39,
          Name: "支路19CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 40,
          Name: "支路20CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 41,
          Name: "支路20CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 42,
          Name: "支路21CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 43,
          Name: "支路21CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 44,
          Name: "支路22CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 45,
          Name: "支路22CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 46,
          Name: "支路23CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 47,
          Name: "支路23CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 48,
          Name: "支路24CT一次值",
          Value: 0.0,
          "Current Value": "0.000 A",
          "Lower Limit": 0.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 49,
          Name: "支路24CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
        {
          ID: 50,
          Name: "基准CT一次值",
          Value: 1000.0,
          "Current Value": "1000.000 A",
          "Lower Limit": 1.0,
          "Upper Limit": 9999.0,
          Step: 1.0,
        },
        {
          ID: 51,
          Name: "基准CT二次值",
          Value: "1",
          "Current Value": "1 A",
          "Lower Limit": 1.0,
          "Upper Limit": 5.0,
          Step: 4.0,
        },
      ];
    },
  },
]);
